<include file="Public:header" />
<load href="__JS__/upload/uploadify.css" />
<load href="__JS__/swfobject.js" />
<script type="text/javascript" src="__JS__/jquery.uploadify.v2.1.4.min.js"></script> 
<div class="content">
<!-----------------------------------------内容开始--------------------------------------------------->
<div class="infoBox">
<form name="form" action="{:U('doadmin_group')}" method="post" onsubmit="return checkform();">
<input type="hidden" name="id" value="{$id}" />
<style>
.infoBoxTd{width:15%;min-width:100px;}
.checkboxml{margin-left:18px;}
.fred{color:#CC0000;}
.zishutishi{width:400px;height:80px;line-height:80px;font-size:22px;padding:0px 40px;color:#f00;background:url(__PUBLIC__/images/btm_bg_hei.png) repeat;position:fixed;left:20%;top:20%;z-index:999;display:none;}
</style>


<table width="100%" border="0" cellpadding="0" cellspacing="0" id="basic">
<tr>
<td width="11%" class="infoBoxTd">名称：</td>
<td colspan="2"><input type="text" name="name" value="{$name}" />
</td>
</tr>

<tr>
    <td class="infoBoxTd">权限：</td>
    <td colspan="2">
		<input type="hidden" name="quan" id="quan" value="{$quan}" />
		<volist name="quans" id="quans" key="i">
			{$i}、 {$quans.name}
			<br />
			<volist name="quans.erji" id="erji" key="ii">
				<input type="checkbox" name="quan_ids" value="{$erji.id}" class="checkboxml" <in name="erji.id" value="$quan">checked</in> />{$erji.name} 
			</volist>
			<br />
		</volist>
	</td>
</tr>
<script type="text/javascript">
$(document).ready(function(){
　　$("input[name='quan_ids']").on("click",function(){
		var gids = new Array();
		$.each($("input[name='quan_ids']:checked"), function(i, n){
			gids.push( $(n).val() );
		});
		var ids=gids.toString();
		$('#quan').val(ids);
　　});

});
</script>

<tr>
<td width="11%" class="infoBoxTd">排序：</td>
<td colspan="2"><input type="text" name="xu" value="{$xu}" />
</td>
</tr>

</table>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="infoBoxTd">&nbsp;</td>
<td align="left"><input type="submit" name="Button1" value="保存" class="formInput01" /></td>
</tr>
</table>
</form>
</div>
<!-----------------------------------------内容结束--------------------------------------------------->
</div>
<script language="javascript">

//表单验证
function checkform(){
	var n = $('input[name="name"]').val();
	if(n == ''){
		ui.error('请输入名称');
		return false;
	}

}

</script>
    

<include file="Public:footer" />
